package com.zyg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zyg.pojo.SysUser;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 用户登录
     * @param loginName
     * @param passWord
     * @return
     */
    SysUser userLogin(String loginName,String passWord);

    /**
     * 分页获取数据
     * @param page
     * @return
     */
    List<SysUser> getUserPageList(Page<SysUser> page,String name);

}